package com.xuecheng.content.service;

import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.content.domain.CoursePub;
import com.baomidou.mybatisplus.extension.service.IService;
import freemarker.template.TemplateException;

import java.io.IOException;
import java.util.Map;

/**
 * <p>
 * 课程发布 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-07-30
 */
public interface CoursePubService extends IService<CoursePub> {

    // 课程预览
    Map preview(Long courseBaseId);

    // 保存课程发布
    ResponseResult saveCoursePub(Long courseBaseId) throws IOException, TemplateException;
}
